package com.online.teaching.module.admin.course.service;

import com.github.pagehelper.PageInfo;
import com.online.teaching.module.admin.course.domain.dto.CourseAddDTO;
import com.online.teaching.module.admin.course.domain.dto.TakesAddDTO;
import com.online.teaching.module.admin.course.domain.dto.TeachesAddDTO;
import com.online.teaching.module.admin.course.domain.vo.TeachesGetVO;
import com.online.teaching.pojo.Takes;
import com.online.teaching.pojo.Teaches;

/**
 * @author yg
 */
public interface AdminCourseService {
    /**
     * 管理员添加课程
     * @param courseAddDTO
     * @return
     */
    int addCourse(CourseAddDTO courseAddDTO);

    /**
     * 删除课程
     * @param courseId
     * @return
     */
    int deleteCourse(Integer courseId);

    /**
     * 管理员为老师排课
     * @param teachesAddDTO
     * @return
     */
    int addTeaches(TeachesAddDTO teachesAddDTO);

    /**
     * 管理员删除一门课
     * @param teachesId
     * @return
     */
    int deleteTeaches(Integer teachesId);

    /**
     * 管理员获取授课列表
     * @return
     */
    PageInfo<TeachesGetVO>getTeachesList(Integer page, Integer size);

    /**
     * 批量为课程添加学生
     * @param takesAddDTO
     * @return
     */
    int addTakes(TakesAddDTO takesAddDTO);


}
